/**
 * Created by lucas on 2017/3/19.
 */
"use strict";

import React, {Component, PropTypes} from 'react';

import classNames from 'classnames';

const Button = props =>
    props.href
        ? <a {...props} className={classNames('Button', props.className)} />
        : <button {...props} className={classNames('Button', props.className)} />

Button.propTypes = {
    href: PropTypes.string,
};

export default Button;